package com.fadadianqi.mall.admin.controller;

import com.fadadianqi.mall.product.model.AttrRelation;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by aroot on 2/28/14.
 */
@Controller
public class ItemSKUAttrController {

    @RequestMapping(value = "")
    public ResponseEntity<String> ajaxSave(HttpServletRequest request, ModelMap modelMap) {
        AttrRelation ar = new AttrRelation();
        ar.setType(AttrRelation.TYPE_SKU);
        ar.setIsMultiple(Boolean.FALSE);
        ar.setIsRequired(Boolean.TRUE);
        ar.setIsSale(Boolean.TRUE);
        ar.setRelationId(null);
        return null;
    }
}
